package com.sqx.modules.app.controller;

import com.sqx.common.utils.Result;
import com.sqx.modules.app.annotation.Login;
import com.sqx.modules.app.service.UserMoneyService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestAttribute;
import org.springframework.web.bind.annotation.RequestMapping;

@RequestMapping("/userMoney")
public class UserMoneyController {
    @Autowired
    private UserMoneyService userMoneyService;

    @Login
    @PostMapping(value = "moneyPayIndent")
    @ApiOperation("余额支付订单")
    public Result moneyPayIndent(@RequestAttribute Long userId, Long indentId) {
        return userMoneyService.moneyPayIndent(userId, indentId);
    }
}
